﻿namespace MyServer.Todo.ClientAPI.Extensions.ConfigureService
{
    public static class ConfigureServiceExtension
    {
        public static void ConfigureServices(this IServiceCollection services, IConfiguration configuration)
        {
            var configureBaseService = new ConfigureBaseService(services, configuration);
            var configureDI = new ConfigureDI(services);

            configureBaseService.ConfigureBase();
            configureBaseService.ConfigureCors();
            configureBaseService.ConfigureSwagger();
            configureBaseService.ConfigureMediatR();
            configureBaseService.ConfigureDataAccess();



            configureDI.ConfigureCommandHandler();
            configureDI.ConfigureRepository();
            configureDI.ConfigureDomainEventHandler();
            configureDI.ConfigureQueries();
            configureDI.ConfigureDomainService();
        }
    }
}
